<h3>Danh mục lĩnh vực</h3>
<div style=" padding-bottom:20px; overflow: hidden">
    <a class="button" href="javascript:void(0);" onclick="loadUrlToDivContent('/danhmuc/linhvuc/input');">Thêm mới</a>
<a class="button" href="javascript:void(0);" onclick="deleteRow('/danhmuc/linhvuc/delete');">Xóa</a>
</div>
<div id="container">   
<table width="" border="1" cellspacing="0" cellpadding="0">
  <tr>
      <th width="25px"><input type="checkbox" onClick="toggle(this)" /></th>
    <th width="50px">STT</th>
    <th width="">Tên lĩnh vực</th>
    <th nowrap>Được sử dụng</th>
  </tr>
  <?php
  $stt = ($this->limit * ($this->page-1));
  foreach ($this->data as $data)
  {
      $stt++;
  ?>
  <tr>
      <td><input type="checkbox" value="<?php echo $data['ID_LV'] ?>" name="selected[]" /></td>
    <td align="center"><?php echo $stt; ?></td>
    <td><a href="javascript:void(0)" onclick="loadUrlToDivContent('/danhmuc/linhvuc/input?id=<?php echo $data['ID_LV'] ?>')"><?php echo $data['NAME'] ?></a></td>
    <td align="center"><?php if((int)$data['ACTIVE']==1){echo "&#10004;";} ?></td>
  </tr>
  <?php
  }  
  ?>
</table>
</div>
<?php echo $this->paginationControl($this->data, 'Sliding' , 'paginator.phtml');?>